package com.demo.consumer.condition;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@ConditionalOnProperty(value = "zhj.value",havingValue = "true",matchIfMissing = false)
//@ConditionalOnContainsProperty(value = "mybatis.test.a.b")
//@ConditionalOnProperty("mybatis.test.a.b")
//@ConditionalOnProperty("spring.application.name")
public class MyBatisAutoConfiguration {
//    @PostConstruct
    public void init(){
    System.out.println("get property...");
}
}
